<template>
  <div class="content">
    <div
      class="title font-16 font-bold"
      v-text="$t('label433')"
    ></div>
    <div class="timebuy_box">
      <div>
        <div class="top_btnbox">
          <el-row class="padb15">
            <el-button type="primary" icon="el-icon-tickets"  @click="navigateTo('/my/arpointBuyList')">点卡购买记录</el-button>
            <el-button type="warning" class="m15" icon="el-icon-document"  @click="navigateTo('/my/arPointuseList')">点卡支付明细记录</el-button>
          </el-row>
        </div>
        <div class="table-wrap">
      <el-table
        v-loading='showLoading'
        max-height='500'
        :data='listData'
      >
        <el-table-column
          :label='$t("date")'
          prop='wdate'
        ></el-table-column>
        <el-table-column
          :label='$t("label435")'
          prop='number'
        >
				<template slot-scope="scope">{{scope.row.number*1}}</template>
				</el-table-column>
				<el-table-column
          :label='$t("status")'
          prop='state'
        ><template slot-scope="scope"><span v-text="scope.row.status==0?'失败':'成功'"></span></template>
				</el-table-column>
        <el-table-column
          sortable
          :label="$t('label437')"
        >
				<template slot-scope="scope">{{scope.row.pointnumber*1}}</template>
        </el-table-column>
				<el-table-column
          sortable
          :label="$t('label438')"
        >
				<template slot-scope="scope">{{scope.row.coinnumber*1}}</template>
        </el-table-column>
        <el-table-column
          sortable
          :label="$t('label434')"
					prop='paycoin'
        >
        </el-table-column>
        <el-table-column
          sortable
          :label="$t('label439')"
        >
				<template slot-scope="scope">{{scope.row.paynumber*1}}</template>
        </el-table-column>
      </el-table>
    </div>
    </div>
      
    </div>
  </div>
</template>
<script>
export default {
  components: { 

	},
  data() {
    return {
      userData: "",
      showLoading: true,
      labelPosition:'top',
      coinName:'AR',
      listData:[],
    };
  },
  mounted() {
    this.showLoading = true;
    this.getpointbill();
  },
  methods: {
    handleSelect(key) {
      this.navigateTo(key);
    },
    onSuccess() {
      this.successMsg("复制成功");
    },
    // 查看点卡购买方案
    getpointbill(){
      this.request(this.api.getpointbill).then(res => {
        try {
					this.listData = res.data.result;
					this.showLoading = false;
        } catch (err) {}
      })
    },
  }
};
</script>
<style lang="scss" scoped>
.table-wrap {
  border: $default-border;
  border-bottom: none;
}
.title {
  margin-bottom: 25px;
}
.bot_top{
    border-top: 1px solid #c1d0cd;
}
.padd20{padding: 15px 0;}
.text_cen{text-align: center;}
.m20{margin-top: 20px;}
.t_bord{border: 1px solid #f3f3f3;}
.back_hui{background: #eeeeee;height: 50px;line-height: 50px;}
.list_info{text-align: center;padding: 0!important;margin-right: 30px;}
.buy_form{width: 600px;margin: 60px auto 0 auto;}
.t_red{color: $color-danger}
.active{border: 2px solid $main-bg-color;}
.coin_list{
  display: flex;text-align: center;flex-wrap: wrap ;
  li{width: 80px;margin:0 15px 15px 0;}
  p{border: 1px solid #eeeeee;}
}
// topbtn
.top_btnbox{
  margin: 20px 0;border-bottom:1px solid #eeeeee;
  .m15{margin-left: 15px;}
  .padb15{padding-bottom: 15px;}
  }
.el-row{margin-left: 0!important}
</style>
